import endpoints from './endpoints';
import { isHybrid } from './utils/h5/hybrid';

const WEAPP_VERSION = '0.1.3'; //设置版本号
const TARO_ENV = process.env.TARO_ENV;
const env = process.env.APP_ENV || 'dev'; //环境变量
const apis = endpoints;
const weappConf = {
    dev: 'develop', //开发版
    qa: 'trial', //体验版
    pre: 'trial',
    prod: 'release' //正式
};
const weappEnv = weappConf[env];

export const appName = process.env.appName;


export const appId = 'wxc35f6af43f92df8c';
export const qqmapKey = '---';//'MW2BZ-6GIL4-4R5U2-XWAPR-OQGYV-IMF6G';
export const channelId = TARO_ENV == 'weapp' ? 800019 : 800010; //800009,800010 企鹅白大褂
export const platform = isHybrid ? 'app' : TARO_ENV == 'weapp' ? 'weapp' : 'h5'; //运行平台，app，小程序(weapp)，公众号(h5)

export default apis;

export { weappEnv, isHybrid, WEAPP_VERSION, env };
